package com.xinnet.mms.contact.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.xinnet.core.dao.impl.BaseDaoImpl;
import com.xinnet.mms.contact.dao.ContactDao;
import com.xinnet.mms.entity.Contact;
@Repository("contactDao")
public class ContactDaoImpl extends BaseDaoImpl<Contact,Long> implements ContactDao {

	@Override
	public void addContact(Contact contect) {
		
		super.getSqlSession().update("contact.addContact",contect);
	}
	
	@Override
	public void updateContact(Contact contect) {
		
		super.getSqlSession().update("contact.updateContact",contect);
	}

	@Override
	public Contact queryContact(Contact contact) {
		return super.getSqlSession().selectOne("contact.queryContact",contact);
	}
}
